describe('practice-6-1', function () {

    it("求谁家的还在跑到了最后？", function () {
        var result = get_last_child();
        console.info(result);
        var array_name = ['zhang','wang','li'];
        for(var i = 0; i < array_name.length; i ++)
        {
            var str_name = array_name[i];
            var arr_score = result[str_name];
            var sum = 0;
            for(var j = 0; j < arr_score.length; j ++)
            {
                sum = sum + arr_score[j];
                if(j < arr_score.length - 1)
                    expect(arr_score[j]-1!=arr_score[j+1]);
                if(str_name == 'wang'&& j === 3)
                    expect(arr_score[j]).toBe(1);
            }
            expect(sum).toBe(15);
        }
    });

});